<template>
  <div id="app" class=" h-100">
    <router-view />
  </div>
</template>
<script>
import { getItem } from './utils/cookie'

export default {
    name: 'App',
    created () {
        // Tricolor_123
        // 初始化时，根据 本地保存的信息来设置主题色
        const theme = getItem('theme') || 'default'
        document.documentElement.className = `theme-${theme}`
    }
}
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
